#-*- coding: utf8 -*-
from tutor.scripts import *
from tutor.plugins.maple import *

# variáveis úteis
half = M('1/2')
t = M.t
_i, _j, _k = M('_i, _j, _k')
rr = M('`..`')

# parâmetros iniciais
with display_block('Valores Iniciais'):
    a = M(oneof(2, 4, 6))
    b = M(oneof(1, 2, 4))
    A = M(oneof(-2, -1, 1, 2, 3, 4)) / 2
    Fx = A * x * cos(y) * sin(y)
    Fy = A * x ** 2 * cos(y) ** 2
    F = fieldF = Fx * _i + Fy * _j

with display_block('Respostas'):
    circ = A * a ** 2 * b / 6
    circM = A * a * b ** 2 / 6
    circQ = A * a ** 2 * b / 2
    distr1 = A * a * b / 2
    distr2 = a * b / 2
    distr3 = 0
